package com.xunfang.service;

import com.xunfang.bean.House;
import com.xunfang.bean.dto.HouseDTO;
import com.xunfang.bean.vo.PageVo;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2023 -11-08
 * @desc
 */
public interface IHouseService {

    PageVo findHouses(Integer currentPage,Integer pageSize);

    //添加操作
    boolean saveUpdateHouse(HouseDTO houseDTO);

    boolean deleteHouseById(Integer id);

    List<House> findHousesByOwner(Integer id);

    List<House> findHousesByBuildingId(Integer buildingId);
}
